Automattic\Jetpack\Publicize\REST_Controller S

Total Complexity 49
Dependencies 8
Dependents 4
Total lines 685
Lines of code 436
Logical lines of code 134
Comment lines 162
Methods 21
Properties 1

Methods 21

Method Rating Maintainability Complexity Lines of code
register_rest_routes()
A
33 1 139
update_post_shares()
S
51 7 25
update_publicize_connection()
S
49 5 34
create_publicize_connection()
S
47 4 39
make_proper_response()
S
58 5 15
update_dismissed_notices()
S
59 4 14
get_publicize_connections()
S
61 3 13
get_social_product_info()
S
56 2 19
manage_connection_permission_check()
S
64 3 9
update_connection_permission_check()
S
66 3 9
share_post()
S
54 1 24
get_jetpack_social_connections_schema()
S
54 1 23
get_dismiss_notice_endpoint_schema()
S
55 1 21
get_jetpack_social_connections_update_schema()
S
57 1 18
get_blog_id()
S
79 2 3
delete_publicize_connection()
S
62 1 11
__construct()
S
81 1 3
get_publicize_connection_test_results()
S
69 1 6
require_author_privilege_callback()
S
80 1 3
require_admin_privilege_callback()
S
80 1 3
get_post_share_status()
S
72 1 5